import { Controller, Get, Injectable, Post, Req, Res } from "@nestjs/common";
import { AxiosResponse } from "axios";
import { Request, Response } from "express";
import { ProxyService } from "../../service/proxy.service";
import { Observable } from "rxjs";
import { Cat } from "../../interfaces/Cat";
import { map } from "rxjs/operators";

@Controller("/mainWeb")
export class MainWebController {

  constructor(private readonly proxyService: ProxyService) {
  }

  /**
   * 渲染gdbdc首页
   */
  @Get("/index/gdbdc")
  renderHome(@Req() request: Request,@Res() response: Response) {
    // /mainWebPage/index.html
    return response.render("index")
  }
}
